<?php


namespace app\index\controller;


use think\Controller;
use think\facade\Config;
use think\facade\Request;

class BaseController extends Controller
{
    public function initialize()
    {
        $config = model('webconfig')->find(1);
        $this->view->share(compact('config'));
        if (!session('?vol_user.id')) {
            $this->redirect('index/index/login');
        }

    }

}
